package task09;

import sun.java2d.SurfaceDataProxy;

import java.util.Scanner;

/**
 * @author Administrator
 */
public class Task2 {
    public static void main(String[] args) {
        System.out.print("请输入一个数：");
        Scanner scanner=new Scanner(System.in);
        int num = scanner.nextInt();
//      count 保存位数
       int count=0;
        while (num>0){
            num=num/10;
            count++;
        }
        System.out.println(count);
    }

}
